package com.liu.sunnyday.service;

import com.github.pagehelper.PageInfo;
import com.liu.sunnyday.entity.QueryPageBean;
import com.liu.sunnyday.exception.SunnydayException;
import com.liu.sunnyday.pojo.CheckItem;

import java.util.List;

/**
 * chance！Time
 *
 * @author liuqian
 * @date 2022-06-08 12:28
 * *
 */
public interface CheckItemService {

    //1,查询所有检查项
    List<CheckItem> findAll();

    //2,新增检查项
    void add(CheckItem checkItem);

    //3-分页查询所有检查项
    PageInfo<CheckItem> findPage(QueryPageBean queryPageBean);

    //4-删除检查项
    void deleteById(Integer id) throws SunnydayException;


    //5-根据id查询数据回显在编辑表单上
    CheckItem findById(Integer id);
    //5-提交表单进行修改
    void updata(CheckItem checkItem);
}
